package top.hymsk.ecommerce.utils;

import java.text.DecimalFormat;

/**
 * @author 花于陌上开
 */
public class DecimalUtils {
    private static final DecimalFormat decimalFormat = new DecimalFormat("#.##");

    public static double round(double number) {
        return Double.parseDouble(decimalFormat.format(number));
    }
}